env_ubi.c: Correct pointer error in env load
authorKevin Smith <[email protected]>
Fri, 23 Oct 2015 17:51:47 +0000 (17:51 +0000)
committerHeiko Schocher <[email protected]>
Thu, 19 Nov 2015 06:32:49 +0000 (07:32 +0100)
commita7c06cd3a6c2c889bd115f43f3de0c9fcc066f96
tree111e7bcf1d9dd04bf34beee4c8b15dfb53a33773
parent736d1746fb7b8f7cd70657a4a72db2b6bd8de40e
env_ubi.c: Correct pointer error in env load

The variable "buf" in this function is a char array, and the
function ubi_volume_read is expecting a char *.  In the call, the
address of the pointer is being taken, incorrectly passing a
char **.  The compiler warning was being silenced by the cast.
Remove the address operator and the cast.

Signed-off-by: Kevin Smith <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Tom Rini <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
common/env_ubi.c